Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: improve calculation of optimism l1 fee #309

Merged
merged 4 commits into from
Mar 14, 2024

Conversation

npty
Copy link
Member

@npty npty commented Mar 14, 2024

Description

  • Changed l1 fee calculation for optimism-based chains from l1_gas_used * l1_gas_price to l1_gas_fee (query directly from GasOracle contract). I found that this way returns more accurate l1 fee compare to a random tx on optimis blockexplorer
  • Fixed mistakenly map executionFeeWithMultiplier to executionFee field
  • Fixed wrong calculation of l1ExecutionFeeWithMultiplier

@npty npty requested a review from canhtrinh March 14, 2024 13:48
@npty npty force-pushed the chore/adjust-l1-fees-optimism branch from 4c4a48e to 6474d3a Compare March 14, 2024 14:16
@npty npty changed the base branch from main to chore/v0.15 March 14, 2024 14:24
@npty npty changed the base branch from chore/v0.15 to main March 14, 2024 14:25
@npty npty changed the base branch from main to v0.15 March 14, 2024 14:26
@npty npty merged commit faa7767 into v0.15 Mar 14, 2024
4 checks passed
@npty npty deleted the chore/adjust-l1-fees-optimism branch March 14, 2024 14:32
canhtrinh added a commit that referenced this pull request Mar 20, 2024
* chore: improve calculation of optimism l1 fee (#309)

* chore: improve calculation of optimism l1 fee

* chore: fix tests

* 0.15.0-alpha.4

* chore: fix tests

* chore: return 0 for mantle L1 fee (#310)

* 0.15.0-alpha.5

* chore: update changelog

* 0.15.0

* chore: fix test

---------

Co-authored-by: npty <[email protected]>
Co-authored-by: npty <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants